﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Admin_TempleAdd.aspx.cs"
    Inherits="Master_Admin_TempleAdd" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <link href="Css/Css.css" rel="stylesheet" type="text/css" />

    <script language="javascript" src="../Script/formValidator/jquery_last.js"></script>

    <script language="javascript" src="../Script/public.js"></script>

</head>
<body>
    <form id="Form1" runat="server">
    <table cellpadding="0" cellspacing="1" border="0" width="100%" class="border" align="center">
        <tr>
            <td colspan="2" align="center" class="title">
                <strong>
                    <%=TempleTypeName %>模板添加</strong>
            </td>
        </tr>
        <tr class="tdbg">
            <td  height="25" width="20%" align="right" >
                <strong>模板名称：</strong>
            </td>
            <td height="25">
                <asp:TextBox ID="Txt_TempleName" runat="server" Width="308px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="Txt_TempleName" Display="Dynamic" ErrorMessage="模板名称不能为空"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr class="tdbg">
            <td  height="25" valign="middle"  align="right"  >
                <strong>所属目录：</strong>
            </td>
            <td height="25">
                <%=cut.UpFoler%>/<asp:TextBox ID="Txt_Path" runat="server" 
                    Width="101px"></asp:TextBox>
                /<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="Txt_Path" Display="Dynamic" ErrorMessage="模板所在目录不能为空"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="Txt_Path" Display="Dynamic" ErrorMessage="只能为数字,字母与下划线" 
                    ValidationExpression="^[0-9a-zA-Z_]{1,17}$"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr class="tdbg">
            <td  height="25" valign="middle"  align="right"  >
                <strong>模板缩略图：</strong>
            </td>
            <td height="25">
                <asp:FileUpload ID="FileUpload1" runat="server" Width="222px" />
                <asp:TextBox ID="Txt_InputUrl" runat="server" Visible="false" Width="240px" ></asp:TextBox>
                <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" 
                    onselectedindexchanged="DropDownList1_SelectedIndexChanged">
                    <asp:ListItem Value="Up">上传本地文件</asp:ListItem>
                    <asp:ListItem Value="Put">手动输入</asp:ListItem>
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="FileUpload1" Display="Dynamic" ErrorMessage="请选择模板缩略图"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr class="tdbg">
            <td  height="25" valign="middle"  align="right"  >
                <strong>需扣点数：</strong>
            </td>
            <td height="25">
                <asp:TextBox ID="Txt_point" runat="server" Width="61px">0</asp:TextBox>
                点<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="Txt_point" Display="Dynamic" ErrorMessage="模板扣除点数至少大于零"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <asp:Panel ID="Panel1" runat="server" Visible="false"  >
        <tr class="tdbg">
            <td  height="25" valign="middle"  align="right"  >
                <strong><%=TempleTypeName %>类型：</strong>
            </td>
            <td height="25">
                <asp:DropDownList ID="DD_Types" runat="server">
                </asp:DropDownList>
            </td> 
        </tr>
        </asp:Panel>
        <tr class="tdbg">
            <td height="40" colspan="2" align="center">
                <input name="Action" type="hidden" id="Action" value="SaveModify">
                <asp:Button ID="Button2" runat="server" Style="cursor: hand; background-color: #cccccc;"
                    Text="  确     定  " OnClick="Button2_Click" />&nbsp;<asp:Button ID="Button1" runat="server"
                        Style="cursor: hand; background-color: #cccccc;" Text="  修    改  " Visible="false" OnClick="Button1_Click1" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
